package com.aigou.admin.aigouspringboot.service;

import com.aigou.admin.aigouspringboot.entity.Order;
import com.aigou.admin.aigouspringboot.entity.Product;
import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;
import com.aigou.admin.aigouspringboot.entity.dto.ProductQueryDTO;
import com.aigou.admin.aigouspringboot.entity.vo.OrderVO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {

    List<Order> selectAll();

    PageInfo<Order> selectOrderListByPage(Integer current);

    int deleteById(String id);

    Order selectById(String id);

    int edit(Order order);

    int save(Order order);

    PageInfo<OrderVO> selectByUserId(String userId, Integer current);

    PageInfo<OrderVO> selectProductListByPage(String userId, Map<String, Object> params);


}
